<?php

use yii\helpers\Html;
use yii\widgets\LinkPager;

/* @var $this yii\web\View */

$this->title = 'admin';
$this->params['breadcrumbs'][] = '用户';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
    <div class="col-xs-12 col-sm-3 text-center">
        <img src="<?php echo $user->avatar ? $user->avatar : '/images/default/avatar.jpg' ?>" alt="" width="150" height="150" class="center-block img-thumbnail img-responsive">
        <ul class="list-inline ratings text-center" title="Ratings">
            <li><a href="#"><span class="fa fa-star fa-lg"></span></a></li>
            <li><a href="#"><span class="fa fa-star fa-lg"></span></a></li>
            <li><a href="#"><span class="fa fa-star fa-lg"></span></a></li>
            <li><a href="#"><span class="fa fa-star fa-lg"></span></a></li>
            <li><a href="#"><span class="fa fa-star fa-lg"></span></a></li>
        </ul>
    </div>
    <!--/col--> 
    <div class="col-xs-12 col-sm-9">
        <h2><?php echo $user->username; ?></h2>
        <p><strong>加入时间: </strong> <?php echo date('Y-m-d', $user->created_at); ?></p>
        <p><strong>擅长: </strong>
            <span class="label label-info tags"><?php echo $user->good ?></span> 
        </p>
    </div>
    <!--/col-->          
    <div class="clearfix"></div>
    <div class="col-xs-12 col-sm-4">
        <h2><strong> <?php echo $qa_num ?> </strong></h2>
        <p><small>提问</small></p>
    </div>
    <!--/col-->
    <div class="col-xs-12 col-sm-4">
        <h2><strong><?php echo $article_num ?></strong></h2>
        <p><small>文章</small></p>
    </div>
    <!--/col-->
    <div class="col-xs-12 col-sm-4">
        <h2><strong><?php echo $comment_num ?></strong></h2>
        <p><small>回答</small></p>
    </div>
    <!--/col-->
</div>
<!--/row-->